package factory.simpleFactory.pizza;

/**
　　* @description: 这是抽象的披萨类 里面集成各种共有方法
　　* @author 周杨
　　* @date 2019/5/25 19:44
　　*/
public abstract  class AbstractPizza {
    String name;

    public abstract void prepare();
    public void bake(){
        System.out.println(name + " breaking;");
    }
    public void cut(){
        System.out.println(name + " cutting;");
    }
    public void box(){
        System.out.println(name + " boxing;");
    }
    void setName(String name){
        this.name = name;
    }
}
